namespace Shouldly.Internals;

static class EnumerableExtensions
{
    public static IEnumerable<(int Index, T Value)> AsIndexed<T>(this IEnumerable<T> source)
    {
        var index = 0;

        foreach (var value in source)
        {
            yield return (index, value);
            index++;
        }
    }
}